
#ifndef GPS_PROTO_GPS_PROTO_UTIL_H__
#define GPS_PROTO_GPS_PROTO_UTIL_H__

#include "gps.pb.h"

namespace gps_proto {

int ComputeBounds(const GpsProto& gps_proto, BoundsProto* bounds_proto);
int ComputeSegmentBounds(const SegmentProto& segment_proto,
                         BoundsProto* bounds_proto);

// Compute and total the 3d distance between each point in the segment.
double TotalSegmentDistance(const SegmentProto& segment, double* ascent,
                            double* descent);

}  // end namespace gpb

#endif  // GPS_PROTO_GPS_PROTO_UTIL_H__
